Skip to content

Instantly share code, notes, and snippets.

@float1251
Created December 29, 2015 13:25
Show Gist options
  • Save float1251/33b1904f6f64e357663a to your computer and use it in GitHub Desktop.
Save float1251/33b1904f6f64e357663a to your computer and use it in GitHub Desktop.
macでbrew install allegroした後のCMakeLists.txt
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})
@float1251
Copy link
Author

allegro_mainがないとx86_64のarchitectureがないと怒られる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment