initial commit
This commit is contained in:
31
CMakeLists.txt.testing
Normal file
31
CMakeLists.txt.testing
Normal file
@@ -0,0 +1,31 @@
|
||||
cmake_minimum_required (VERSION 3.2)
|
||||
|
||||
set (CMAKE_CXX_STANDARD 11)
|
||||
|
||||
cmake_policy(SET CMP0072 NEW)
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
|
||||
project (mark1)
|
||||
|
||||
# SDL2
|
||||
find_package(SDL2 REQUIRED)
|
||||
# find_package(OpenGL REQUIRED)
|
||||
|
||||
include_directories(${SDL2_INCLUDE_DIRS})
|
||||
# include_directories(${OPENGL_INCLUDE_DIR})
|
||||
|
||||
message(STATUS "<<${SDL2_INCLUDE_DIRS}>>")
|
||||
# message(STATUS "<<${OPENGL_INCLUDE_DIR}>>")
|
||||
|
||||
# Main Executable
|
||||
|
||||
add_definitions("-Wall -O0 -g")
|
||||
#add_definitions("-Wall -Werror -O0 -g")
|
||||
add_executable(mark1 mark1.cpp)
|
||||
target_include_directories(mark1 PUBLIC ${CMAKE_SOURCE_DIR}/src)
|
||||
|
||||
# Libraries
|
||||
target_link_libraries(mark1 ${SDL2_LIBRARIES})
|
||||
# target_link_libraries(mark1 ${OPENGL_LIBRARIES})
|
||||
|
||||
message(STATUS "<<${SDL2_LIBRARIES}>>")
|
||||
# message(STATUS "<<${OPENGL_LIBRARIES}>>")
|
||||
Reference in New Issue
Block a user