Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
41eb4eaf
Unverified
Commit
41eb4eaf
authored
Mar 29, 2018
by
sterin
Committed by
GitHub
Mar 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3 from kmurray/fix_cmake_libabc_dependency
CMake: Ensure abc executable depends on libabc
parents
a2d59be3
c3be5dc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
CMakeLists.txt
+6
-4
No files found.
CMakeLists.txt
View file @
41eb4eaf
...
@@ -88,15 +88,17 @@ function(abc_properties target visibility)
...
@@ -88,15 +88,17 @@ function(abc_properties target visibility)
target_link_libraries
(
${
target
}
${
visibility
}
${
ABC_LIBS
}
)
target_link_libraries
(
${
target
}
${
visibility
}
${
ABC_LIBS
}
)
endfunction
()
endfunction
()
add_executable
(
abc
${
ABC_SRC
}
)
set
(
ABC_MAIN_SRC src/base/main/main.c
)
abc_properties
(
abc PRIVATE
)
list
(
REMOVE_ITEM ABC_SRC
${
ABC_MAIN_SRC
}
)
list
(
REMOVE_ITEM ABC_SRC src/base/main/main.c
)
add_library
(
libabc EXCLUDE_FROM_ALL
${
ABC_SRC
}
)
add_library
(
libabc EXCLUDE_FROM_ALL
${
ABC_SRC
}
)
abc_properties
(
libabc PUBLIC
)
abc_properties
(
libabc PUBLIC
)
set_property
(
TARGET libabc PROPERTY OUTPUT_NAME abc
)
set_property
(
TARGET libabc PROPERTY OUTPUT_NAME abc
)
add_executable
(
abc
${
ABC_MAIN_SRC
}
)
target_link_libraries
(
abc PRIVATE libabc
)
abc_properties
(
abc PRIVATE
)
add_library
(
libabc-pic EXCLUDE_FROM_ALL
${
ABC_SRC
}
)
add_library
(
libabc-pic EXCLUDE_FROM_ALL
${
ABC_SRC
}
)
abc_properties
(
libabc-pic PUBLIC
)
abc_properties
(
libabc-pic PUBLIC
)
set_property
(
TARGET libabc-pic PROPERTY POSITION_INDEPENDENT_CODE ON
)
set_property
(
TARGET libabc-pic PROPERTY POSITION_INDEPENDENT_CODE ON
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment