Created
December 29, 2015 13:25
-
-
Save float1251/33b1904f6f64e357663a to your computer and use it in GitHub Desktop.
macでbrew install allegroした後のCMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.3) | |
find_package(PkgConfig) | |
pkg_check_modules(ALLEGRO5 REQUIRED allegro-5) | |
pkg_check_modules(ALLEGRO_MAIN REQUIRED allegro_main-5.0) | |
include_directories(${ALLEGRO5_INCLUDE_DIRS}) | |
include_directories(${ALLEGRO_MAIN_INCLUDE_DIRS}) | |
add_executable(sample main.c) | |
target_link_libraries(sample ${ALLEGRO5_LIBRARIES}) | |
target_link_libraries(sample ${ALLEGRO_MAIN_LIBRARIES}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
allegro_mainがないとx86_64のarchitectureがないと怒られる