Cleanup + modifications to CMakeLists.txt
This commit is contained in:
parent
ecba24bd4e
commit
f56aace8b2
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,5 @@
|
||||
CMakeFiles
|
||||
CMakeLists.txt
|
||||
cmake_install.cmake
|
||||
CMakeCache.txt
|
||||
Makefile
|
||||
PogoBijoux
|
||||
|
@ -1,16 +1,16 @@
|
||||
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
||||
cmake_minimum_required(VERSION 3.16 FATAL_ERROR) #Why cannot older versions be used?
|
||||
|
||||
project(PB)
|
||||
project(PogoBijoux)
|
||||
|
||||
add_executable(PB "src/main.cpp" "src/Sound.c")
|
||||
add_executable(PogoBijoux "src/main.cpp" "src/Sound.c")
|
||||
|
||||
if(UNIX AND NOT APPLE) # linux
|
||||
if(UNIX AND NOT APPLE) #GNU/Linux
|
||||
target_link_libraries(PB -lopenal)
|
||||
target_link_libraries(PB -lsndfile)
|
||||
target_link_libraries(PB -lIrrlicht -lGL -lGLU -lXxf86vm -lXext -lX11)
|
||||
endif()
|
||||
|
||||
if (WIN32) # windows
|
||||
if (WIN32) #Windows
|
||||
target_link_libraries(${PROJECT_NAME} -lopenal-soft)
|
||||
target_link_libraries(${PROJECT_NAME} -lsndfile)
|
||||
target_link_libraries(${PROJECT_NAME} -lirrlicht)
|
||||
|
Loading…
Reference in New Issue
Block a user