2023-03-12 01:26:39 +01:00
|
|
|
# PogoBijoux CMake List
|
|
|
|
# By Kacper "kacperks" Kostka
|
|
|
|
|
2023-03-05 02:29:37 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16 FATAL_ERROR) #Why cannot older versions be used?
|
2022-07-19 19:59:37 +02:00
|
|
|
|
2023-03-05 02:29:37 +01:00
|
|
|
project(PogoBijoux)
|
2022-07-19 19:59:37 +02:00
|
|
|
|
2023-03-12 01:26:39 +01:00
|
|
|
add_executable(PogoBijoux "main.cpp" "Sound.c")
|
2022-07-19 19:59:37 +02:00
|
|
|
|
2023-03-12 01:26:39 +01:00
|
|
|
if(UNIX AND NOT APPLE) # GNU/Linux
|
2022-07-19 19:59:37 +02:00
|
|
|
target_link_libraries(PB -lopenal)
|
|
|
|
target_link_libraries(PB -lsndfile)
|
|
|
|
target_link_libraries(PB -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11)
|
|
|
|
endif()
|
|
|
|
|
2023-03-12 01:26:39 +01:00
|
|
|
if (WIN32) # Windows
|
2022-07-19 19:59:37 +02:00
|
|
|
target_link_libraries(${PROJECT_NAME} -lopenal-soft)
|
|
|
|
target_link_libraries(${PROJECT_NAME} -lsndfile)
|
|
|
|
target_link_libraries(${PROJECT_NAME} -lirrlicht)
|
|
|
|
endif(WIN32)
|