Study: DeveloperTools(DevTool)/DevTool: CMake
[CMake] λ³μ λ° μ΄λ―Έ μ μλ λ§€ν¬λ‘ κ°λ€
DrawingProcess
2022. 7. 7. 15:05
λ°μν
π‘ λ³Έ λ¬Έμλ CMakeμ μ΄λ―Έ μ μλμ΄ μλ λ³μ κ°μΈ λ§€ν¬λ‘μ λν΄ λμ΄ν λ¬Έμλ‘,
μ£Όλ‘ νκ²½ κ²½λ‘ λ±μ μ¬μ©μκ° μ€μ νκΈ° μν΄ μ¬μ©ν©λλ€.
1. λ³μ μ μ λ° μ¬μ©
μΌλ°μ μΈ λ³μ μ μ
set(<variable> <value>... [PARENT_SCOPE])
- If the PARENT_SCOPE option is given the variable will be set in the scope above the current scope.
option(<variable> "<help_text>" [value])
- an option for the user to select as ON or OFF.
- If no initial <value> is provided, OFF is used.
μΊμ λ³μ μ μ
set(<variable> <value>... CACHE <type> <docstring> [FORCE])
νκ²½ λ³μ μ μ
set(ENV{<variable>} [<value>])
- calls of $ENV{<variable>} will return this new value.
- If no argument is given after ENV{<variable>}, then this command will clear any existing value of the environment variable.
λ³μ μ¬μ©
${λ³μ}
2. μ΄λ―Έ μ μλ λ³μ(λ§€ν¬λ‘)
- RUNTIME_OUTPUT_DIRECTORY
: λΉλ μ΄ν μμ±λ λ°μ΄λ리λ₯Ό μ μ₯ν λλ ν 리 κ°(κ²½λ‘)μ΄ μ μ₯λμ΄ μλ λ³μ - LIBRARY_OUTPUT_DIRECTORY
: λΉλ μ΄ν μμ±λ λΌμ΄λΈλ¬λ¦¬λ₯Ό μ μ₯ν λλ ν 리 κ°(κ²½λ‘)μ΄ μ μ₯λμ΄ μλ λ³μ - ARCHIVE_OUTPUT_DIRECTORY
: λΉλ μ΄ν μμ±λ μμΉ΄μ΄λΈ(=staticλΌμ΄λΈλ¬λ¦¬)λ₯Ό μ μ₯ν λλ ν 리 κ°(κ²½λ‘)μ΄ μ μ₯λμ΄ μλ λ³μ
λ°μν