cmake: no indentation for closing cmake command parenthesis

This commit is contained in:
Anonymous Maarten 2020-12-03 18:11:55 +01:00
parent 9c578580ec
commit 32234609ea
6 changed files with 39 additions and 39 deletions

View File

@ -4,22 +4,22 @@ add_library(librw_skeleton
skeleton.cpp skeleton.cpp
skeleton.h skeleton.h
win.cpp win.cpp
) )
set_target_properties(librw_skeleton set_target_properties(librw_skeleton
PROPERTIES PROPERTIES
PREFIX "" PREFIX ""
) )
target_link_libraries(librw_skeleton target_link_libraries(librw_skeleton
PUBLIC PUBLIC
librw librw
) )
target_include_directories(librw_skeleton target_include_directories(librw_skeleton
INTERFACE INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
) )
if(NOT LIBRW_PLATFORM_PS2 AND NOT LIBRW_PLATFORM_NULL) if(NOT LIBRW_PLATFORM_PS2 AND NOT LIBRW_PLATFORM_NULL)
add_subdirectory(imgui) add_subdirectory(imgui)

View File

@ -12,17 +12,17 @@ add_library(librw_skeleton_imgui
stb_rect_pack.h stb_rect_pack.h
stb_textedit.h stb_textedit.h
stb_truetype.h stb_truetype.h
) )
set_target_properties(librw_skeleton_imgui set_target_properties(librw_skeleton_imgui
PROPERTIES PROPERTIES
PREFIX "" PREFIX ""
) )
target_link_libraries(librw_skeleton_imgui target_link_libraries(librw_skeleton_imgui
PUBLIC PUBLIC
librw_skeleton librw_skeleton
) )
if(LIBRW_INSTALL) if(LIBRW_INSTALL)
install( install(

View File

@ -91,20 +91,20 @@ add_library(librw
ps2/rwps2.h ps2/rwps2.h
ps2/rwps2impl.h ps2/rwps2impl.h
ps2/rwps2plg.h ps2/rwps2plg.h
) )
add_library(librw::librw ALIAS librw) add_library(librw::librw ALIAS librw)
target_include_directories(librw target_include_directories(librw
INTERFACE INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}> $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
) )
target_compile_definitions(librw target_compile_definitions(librw
PRIVATE PRIVATE
"$<IF:$<CONFIG:DEBUG>,DEBUG,NDEBUG>" "$<IF:$<CONFIG:DEBUG>,DEBUG,NDEBUG>"
PUBLIC PUBLIC
"RW_${LIBRW_PLATFORM}" "RW_${LIBRW_PLATFORM}"
) )
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
target_compile_options(librw target_compile_options(librw
@ -135,7 +135,7 @@ set_target_properties(librw
CXX_EXTENSIONS OFF CXX_EXTENSIONS OFF
CXX_STANDARD_REQUIRED ON CXX_STANDARD_REQUIRED ON
PREFIX "" PREFIX ""
) )
if(LIBRW_PLATFORM_GL3) if(LIBRW_PLATFORM_GL3)

View File

@ -1,11 +1,11 @@
add_executable(dumprwtree add_executable(dumprwtree
dumprwtree.cpp dumprwtree.cpp
) )
target_link_libraries(dumprwtree target_link_libraries(dumprwtree
PUBLIC PUBLIC
librw librw
) )
if(LIBRW_INSTALL) if(LIBRW_INSTALL)
install(TARGETS dumprwtree install(TARGETS dumprwtree

View File

@ -1,12 +1,12 @@
add_executable(imguitest WIN32 add_executable(imguitest WIN32
main.cpp main.cpp
) )
target_link_libraries(imguitest target_link_libraries(imguitest
PUBLIC PUBLIC
librw librw
librw_skeleton_imgui librw_skeleton_imgui
) )
if(LIBRW_INSTALL) if(LIBRW_INSTALL)
install(TARGETS imguitest install(TARGETS imguitest